package com.faxsun.core.web.security.service;

import javax.servlet.http.HttpServletRequest;

import com.faxsun.fm.model.Response;

/**
 * 风控服务接口
 * 
 * @author zhaoteng.song@faxsun.com
 *
 */
public interface FraudService {

	/**
	 * 查询登录风控策略
	 * 
	 * @param request
	 * @return
	 */
	public Response queryFraudForLogin(HttpServletRequest request);

	/**
	 * 将登录结果通知风控系统
	 * 
	 * @param request
	 *            登录结果请求
	 * @param isSucc
	 *            true，登录成功；false，登录失败；null为查询请求
	 */
	public void noitfyFraudLoginResult(HttpServletRequest request,
			Boolean isSucc);

	/**
	 * 查询注册风控策略
	 * @param request
	 * @return
	 */
	public Response queryFrauadForRegister(HttpServletRequest request);

	/**
	 * 将注册结果通知风控系统
	 * @param request
	 * @param isSucc
	 */
	public void notifyFrauadRegisterResult(HttpServletRequest request,
			Boolean isSucc);

}
